package org.gdsdxy.pmmp.service;

import java.util.List;

import org.gdsdxy.pmmp.entity.Email;

public interface IEmailService {
	public List<Email> getEmailByUserId(Integer id);
  
  public List<Email> getEmailByReceiver(String name);
  
  public void writeEmails(List<Email> emails);
  
  public Email getEmailById(int emailId);
  
  public void removeById(int emailId);
  
  public void removeByIds(List<Integer> emailIds);
  
  public void modify(Email email);
  
  public List<Email> findEmailsByReceiverByFy(final String receiver, final int start,final int size) ;
  
  public long countEmails(String receiver);
}
